wayland: Make sure to notify the capability settings when we get capabilities
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 1 Jul 2014 19:16:12 +0000 (15:16 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 1 Jul 2014 19:39:06 +0000 (15:39 -0400)
Otherwise, we won't notice when we get capabilities, and we'll show app
menus, etc.

gdk/wayland/gdkscreen-wayland.c

index 16b54b86f5d143bd3e91758788434a3f1a499159..4cbc51e493ef61300df2bc15ee35af73fffe0d77 100644 (file)
@@ -618,9 +618,14 @@ gtk_shell_handle_capabilities (void             *data,
                               struct gtk_shell *shell,
                               uint32_t          capabilities)
 {
-  GdkWaylandScreen *screen_wayland = data;
+  GdkScreen *screen = data;
+  GdkWaylandScreen *screen_wayland = GDK_WAYLAND_SCREEN (data);
 
   screen_wayland->shell_capabilities = capabilities;
+
+  notify_setting (screen, "gtk-shell-shows-app-menu");
+  notify_setting (screen, "gtk-shell-shows-menubar");
+  notify_setting (screen, "gtk-shell-shows-desktop");
 }
 
 struct gtk_shell_listener gdk_screen_gtk_shell_listener = {